package messageHandler;

import org.openymsg.network.Session;

import core.MessageBuilder;

public class ChangeStatusMessageHandler implements IMessage {

	@Override
	public Object Process(String message, Session session) {
		try {
			message = message.split(MessageBuilder.ONE)[1];
			String[] content = message.split(MessageBuilder.TWO);
			String newStatus = content[0];
			boolean showBusyIcon = Boolean.parseBoolean(content[1]);
			session.setStatus(newStatus, showBusyIcon);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return null;
	}

}
